/*
 * @Author: zjf
 * @Date: 2023-11-29 21:36:15
 * @LastEditors: zjf
 * @LastEditTime: 2023-12-08 09:59:06
 * @Description: 施工许可阶段4 建设工程施工许可证核发15
 */
// 接口地址
export const api = window.$crud("construction/license");
// 阶段code
export const stageCode = 4;
// 业务code
export const businessCode = 15;

export const formColmuns = [
  {
    label: "项目名称",
    prop: "projectName",
    dataType: "input",
    isNotAutoWrap: true,
    disabled: true,
  },
  // {
  //   label: "项目编码",
  //   prop: "projectCode",
  //   dataType: "input",
  //   isNotAutoWrap: true,
  //   disabled: true,
  // },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "勘察单位",
    prop: "explorationEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "勘察单位负责人",
    prop: "explorationEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "设计单位",
    prop: "designEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "设计单位负责人",
    prop: "designEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "施工单位",
    prop: "constructionEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "施工单位负责人",
    prop: "constructionEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "监理单位",
    prop: "constructionControlEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "监理单位负责人",
    prop: "constructionControlEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "合同工期",
    prop: "contractDuration",
    minWidth: 140,
    dataType: "input",
    append: "天",
  },
  {
    label: "合同金额",
    prop: "contractAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "元",
  },
  {
    label: "合同开工时间",
    prop: "contractStartTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "合同竣工日期",
    prop: "contractCompletionTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "合同造价",
    prop: "contractCostAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
];

export const tableColmuns = [
  // {
  //   label: '项目编码',
  //   prop: 'projectCode',
  //   minWidth: 140,
  //   dataType: 'input',
  //   isNotAutoWrap: true,
  // },
  {
    label: "项目名称",
    prop: "projectName",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  // {
  //   label: "阶段进展",
  //   prop: "stageProgress",
  //   minWidth: 140,
  //   dataType: 'dataItem',
  //   dataCode: "periodicProgress",
  //   isNotAutoWrap: true,
  // },
  {
    label: "文号",
    prop: "documentNumber",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "核发时间",
    prop: "approvalTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "勘察单位",
    prop: "explorationEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "勘察单位负责人",
    prop: "explorationEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "设计单位",
    prop: "designEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "设计单位负责人",
    prop: "designEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "施工单位",
    prop: "constructionEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "施工单位负责人",
    prop: "constructionEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "监理单位",
    prop: "constructionControlEntity",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "监理单位负责人",
    prop: "constructionControlEntityPerson",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
  },
  {
    label: "合同工期",
    prop: "contractDuration",
    minWidth: 140,
    dataType: "input",
    append: "天",
  },
  {
    label: "合同金额(万元)",
    prop: "contractAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "元",
  },
  {
    label: "合同开工时间",
    prop: "contractStartTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "合同竣工日期",
    prop: "contractCompletionTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd",
  },
  {
    label: "合同造价(万元)",
    prop: "contractCostAmount",
    minWidth: 140,
    dataType: "input",
    isNotAutoWrap: true,
    append: "万元",
  },
  {
    label: "更新时间",
    prop: "modifyTime",
    minWidth: 140,
    dataType: "datetime",
    format: "yyyy-MM-dd HH:mm:ss",
  },
];

export const formData = {
  projectName: "", // 项目名称
  projectCode: "", // 项目编码
  // stageProgress: "", // 阶段进展

  documentNumber: "", // 文号
  approvalTime: "", // 核发时间
  explorationEntity: "", // 勘察单位
  explorationEntityPerson: "", // 勘察单位负责人
  designEntity: "", // 设计单位
  designEntityPerson: "", // 设计单位负责人
  constructionEntity: "", // 施工单位
  constructionEntityPerson: "", // 施工单位负责人
  constructionControlEntity: "", // 监理单位
  constructionControlEntityPerson: "", // 监理单位负责人
  contractDuration: "", // 合同工期
  contractAmount: "", // 合同金额
  contractStartTime: "", // 合同开工时间
  contractCompletionTime: "", // 合同竣工日期
  contractCostAmount: null // 合同造价
};

export const rules = {

};

let config = {
  api: api,
  stageCode: stageCode,
  businessCode: businessCode,
  formColmuns: formColmuns,
  tableColmuns: tableColmuns,
  formData: formData,
  rules: rules,
};

export default config;